import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("mall_feedback",{schema:"nest-mall" } )
@Index("user_id",["userId",])
export class MallFeedback {

    @PrimaryGeneratedColumn({
        type:"mediumint", 
        name:"msg_id"
        })
    msgId:number;
        

    @Column("mediumint",{ 
        nullable:false,
        default: () => "'0'",
        name:"user_id"
        })
    userId:number;
        

    @Column("varchar",{ 
        nullable:false,
        length:60,
        name:"user_name"
        })
    userName:string;
        

    @Column("varchar",{ 
        nullable:false,
        length:60,
        name:"mobile"
        })
    mobile:string;
        

    @Column("tinyint",{ 
        nullable:false,
        default: () => "'0'",
        name:"feed_Type"
        })
    feedType:number;
        

    @Column("text",{ 
        nullable:false,
        name:"content"
        })
    content:string;
        

    @Column("tinyint",{ 
        nullable:false,
        default: () => "'0'",
        name:"status"
        })
    status:number;
        

    @Column("timestamp",{ 
        nullable:true,
        default: () => "CURRENT_TIMESTAMP",
        name:"add_time"
        })
    addTime:Date | null;
        
}
